import pyautogui
imgpath = "./2560_1440/"
location = pyautogui.locateOnScreen(image=imgpath + '刷新3.png')
#print(location)
#Box(left=637, top=207, width=51, height=13)
if location is not None:
    print(location,1)
else:
    location = pyautogui.locateOnScreen(image=imgpath + '选课2.png')
    print(location,2)